<?php
$text=intval($_GET[text]);
$image_file="shirt.png";
$data = getimagesize($image_file);
$image=imagecreatefrompng($image_file);
$textcolor=imagecolorallocate($image,0,0,0);
$xpos=($text>9)?9:12;
if (function_exists('imagesavealpha')) {
 	imageAlphaBlending ($image, false);
	imageSaveAlpha ($image, true);
}
imagestring($image,2,$xpos,1,$text,$textcolor);
header("Content-Type: image/png");
imagepng($image);
imagedestroy($image);
?>